<?php
	$request_uri = $_SERVER["REQUEST_URI"];
	$pieces = explode("/", $request_uri);
	$aux = count($pieces) - 3;
	$require_string = "";
	for($count = 0; $count < $aux; $count++)
		$require_string .= "../";
?>

<html>
	<head></head>
	<body>
		<form action="<?php echo $require_string . 'view/usuario/inserirUsuario.php'; ?>" method="post" enctype="text/plain">
			<h2>Cadastro de novo usuário</h2>
			<table border="0">
				<tr>
					<td>Nome:</td>
					<td><input type="text" name="nome" value="" size="40" maxlength="255"/></td>
				</tr>
				<tr>
					<td>CPF:</td>
					<td><input type="text" name="cpf" value="" size="40" maxlength="11"/></td>
				</tr>
				<tr>
					<td>CEP:</td>
					<td><input type="text" name="cep" value="" size="40" maxlength="8"/></td>
				</tr>
				<tr>
					<td>Telefone:</td>
					<td><input type="text" name="telefone" value="" size="40" maxlength="15"/></td>
				</tr>
				<tr>
					<td>Celular:</td>
					<td><input type="text" name="celular" value="" size="40" maxlength="15"/></td>
				</tr>
				<tr>
					<td>E-mail:</td>
					<td><input type="text" name="email" value="" size="40" maxlength="255"/></td>
				</tr>
				<tr>
					<td>Endereço:</td>
					<td><input type="text" name="endereco" value="" size="40" maxlength="255"/></td>
				</tr>
				<tr>
					<td>Complemento:</td>
					<td><input type="text" name="complemento" value="" size="40" maxlength="255"/></td>
				</tr>
				<tr>
					<td>Bairro:</td>
					<td><input type="text" name="bairro" value="" size="40" maxlength="255"/></td>
				</tr>
				<input type="submit" name="submit" value="OK"/>
			</table>
		</form>
	</body>
</html>